﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Dealer_Manage.aspx.cs" Inherits="TimKen.Web.Admin.Customer.Dealer_Manage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
    <link href="../../Common/Style/PagerStyle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function refresh() {
            this.location = this.location;
        }
      
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <!-- 搜索 -->
    <div class="form-div">
        <img src="../images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        <!-- ERP编号 -->
        产品授权号：<asp:TextBox ID="txtLicensedNo" runat="server"></asp:TextBox>
        <!-- 客户名称 -->
        授权产品名：<asp:TextBox ID="txtDealerName" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" CssClass="button" Text="查询" OnClick="btnSearch_Click" />|
        <asp:Button ID="btnAdd" runat="server" CssClass="button" Text="新增" 
            onclick="btnAdd_Click" />
    </div>
    <div class="list-div">
        <asp:GridView ID="gvDealerList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvDealerList_RowCommand"
            CssClass="grid">
            <Columns>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("ID")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DealerID")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        授权号
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("LicensedNo")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Name_Cn")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DealerNameCn")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Name_En")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DealerNameEn")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        授权单位名称
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("CompanyName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        授权产品线名
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DealerName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        产品线英文名
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DealerName_En")%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        代码商级别
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("DealerLive")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        联系号码
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("PhoneNo")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="200" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Region")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("ProvinceName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" ToolTip='<%#GetLangString("Edit")%>'
                            CommandName="mod" CommandArgument='<%#Eval("DealerID")%>' ImageUrl="~/Admin/images/icon_edit.gif" />
                        <asp:ImageButton ID="btnDelete" runat="server" ToolTip='<%#GetLangString("Delete")%>'
                            CommandName="del" CommandArgument='<%#Eval("DealerID")%>' ImageUrl="~/Admin/images/icon_drop.gif"
                            OnClientClick="return deleteConfirm()" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <ux:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
        runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" Width="95%"
        ShowPageIndexBox="Always" PageSize="8" HorizontalAlign="right" EnableTheming="true"
        AlwaysShow="true" PageIndexBoxType="DropDownList" OnPageChanged="AspNetPager1_PageChanged"
        ButtonImageNameExtension="n" CpiButtonImageNameExtension="r" ShowCustomInfoSection="Left"
        ShowNavigationToolTip="true" CustomInfoTextAlign="Left" LayoutType="Table" CustomInfoHTML=""
        PrevPageText="上一页">
    </ux:AspNetPager>
    <%--   <div class="main-div">
        <table width="100%">
            <tr>
                <th class="label">
                    <%=GetLangString("ID")%>：
                </th>
                <td>
                    <asp:Label ID="lablDealerID" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    授权号：
                </th>
                <td>
                    <asp:Label ID="lblLicensedNo" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="label">
                    授权单位名称：
                </th>
                <td>
                    <asp:TextBox ID="txtComanyName" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    授权产品线名：
                </th>
                <td>
                    <asp:TextBox ID="txtDealerName" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    代理商级别：
                </th>
                <td>
                    <asp:DropDownList ID="ddltxtDealerLive" runat="server">
                        <asp:ListItem Value="1">一级代理</asp:ListItem>
                        <asp:ListItem Value="2">二级代理</asp:ListItem>
                        <asp:ListItem Value="3">三级代理</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Name_Cn")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtDealerNameCn" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Name_En")%>：
                </th>
                <td>
                    <asp:TextBox ID="txtDealerNameEn" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    <%=GetLangString("Region")%>：
                </th>
                <td>
                    <asp:DropDownList ID="ddlProvince" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th class="label">
                    联系号码:
                </th>
                <td>
                    <asp:TextBox ID="txtPhoneNo" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                    URL：
                </th>
                <td>
                    <asp:TextBox runat="server" ID="txtUrl" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th class="label">
                </th>
                <td>
                    <asp:Button ID="btnSave" runat="server" CssClass="button" OnClick="btSave_Click" />
                </td>
            </tr>
        </table>
    </div>--%>
</asp:Content>
